import { dataQueryAxios } from '@/utils/request'

// 列表
export const getPublishDataBaseList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/release-items`,
    method: 'get',
    params: {
      release_status: 'published',
      ...params
    }
  })
}

// 数据库历史搜索记录
export const getDataBaseHistoryList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/data-items/search-history`,
    method: 'get',
    params
  })
}
